/*******************************************************************************
 * Copyright (c) 2009 Kevin Bierhoff and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Kevin Bierhoff - initial API and implementation
 *******************************************************************************/
package com.googlecode.twelfdevtools.preferences;

import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.swt.graphics.RGB;

import com.googlecode.twelfdevtools.TwelfActivator;


public class TwelfPreferencesAccess {
	
	public static String getTwelfCommand() {
		return TwelfActivator.getDefault().getPreferenceStore().
				getString(PreferenceConstants.P_SERVER_CMD);
	}
	
	public static boolean getMatchBrackets() {
		return TwelfActivator.getDefault().getPreferenceStore().
				getBoolean(PreferenceConstants.P_MATCH_BRACKETS);
	}
	
	public static RGB getMatchingBracketsColor() {
		return PreferenceConverter.getColor(
				TwelfActivator.getDefault().getPreferenceStore(), 
				PreferenceConstants.P_MATCHING_BRACKETS_COLOR);
	}

}
